package com.wang.springcloud.item.user.controller;

import com.wang.springcloud.item.user.dto.UserDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("user-info")
    public UserDTO getUserById(Long id){
        UserDTO userDTO = new UserDTO();
        userDTO.setId(id);
        userDTO.setMobile("110");
        userDTO.setName("张三");
        return userDTO;
    }
}
